<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>BOSS Afterburner: Hist.cxx Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">BOSS Afterburner
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('Hist_8cxx_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">Hist.cxx</div>  </div>
</div><!--header-->
<div class="contents">
<a href="Hist_8cxx.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="Hist_8h.html">Functions/Hist.h</a>&quot;</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="TerminalIO_8h.html">Functions/TerminalIO.h</a>&quot;</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="preprocessor">#include &quot;TString.h&quot;</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="preprocessor">#include &quot;TVirtualPad.h&quot;</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="keyword">using namespace </span><a class="code" href="namespaceBOSS__Afterburner_1_1TerminalIO.html">BOSS_Afterburner::TerminalIO</a>;</div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;</div><div class="line"><a name="l00007"></a><span class="lineno"><a class="line" href="namespaceBOSS__Afterburner_1_1Hist.html#a430848ed571d18b1546ad7bb37fa6e5c">    7</a></span>&#160;TH1D <a class="code" href="namespaceBOSS__Afterburner_1_1Hist.html#a430848ed571d18b1546ad7bb37fa6e5c">BOSS_Afterburner::Hist::CreateInvariantMassHistogram</a>(<span class="keyword">const</span> <a class="code" href="classReconstructedParticle.html">ReconstructedParticle</a>&amp; particle,</div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;                                                          <span class="keyword">const</span> <span class="keywordtype">int</span>                    nBins)</div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;{</div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;  <span class="keywordflow">return</span> TH1D(Form(<span class="stringliteral">&quot;hist_%s&quot;</span>, particle.<a class="code" href="classParticle.html#ad30a585b6978c1be9fe055b991aae27d">Name</a>()),</div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;              Form(<span class="stringliteral">&quot;Invariant mass for %s candidate;#it{M}_{%s} (GeV/#it{c}^{2});counts&quot;</span>,</div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;                   particle.<a class="code" href="classParticle.html#a277d1d1b4dfb9f52534fd47ddd204cf7">NameLaTeX</a>(), particle.<a class="code" href="classReconstructedParticle.html#adc13b67310f6b9db9c819a9024f58f20">DaughterLabel</a>()),</div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;              nBins, particle.<a class="code" href="classReconstructedParticle.html#aa755cc4e124a7355b30a7b8fc7eddafb">PlotFrom</a>(), particle.<a class="code" href="classReconstructedParticle.html#ae4b4ace00839a865ae3a610e89589a67">PlotUntil</a>());</div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;}</div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;</div><div class="line"><a name="l00016"></a><span class="lineno"><a class="line" href="namespaceBOSS__Afterburner_1_1Hist.html#af68da061498f2040de2c89aac7e53441">   16</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="namespaceBOSS__Afterburner_1_1Hist.html#af68da061498f2040de2c89aac7e53441">BOSS_Afterburner::Hist::SetAxisTitles</a>(TH1* hist, <span class="keyword">const</span> <span class="keywordtype">char</span>* xAxis, <span class="keyword">const</span> <span class="keywordtype">char</span>* yAxis,</div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;                                           <span class="keyword">const</span> <span class="keywordtype">char</span>* zAxis, <span class="keywordtype">bool</span> update)</div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;{</div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;  <span class="keywordflow">if</span>(<a class="code" href="namespaceBOSS__Afterburner_1_1TerminalIO.html#a3cf768f515ced7b0f68b80b0d5ce0371">IsEmptyPtr</a>(hist)) <span class="keywordflow">return</span>;</div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;  <span class="keywordflow">if</span>(xAxis) hist-&gt;GetXaxis()-&gt;SetTitle(xAxis);</div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;  <span class="keywordflow">if</span>(yAxis) hist-&gt;GetYaxis()-&gt;SetTitle(yAxis);</div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;  <span class="keywordflow">if</span>(zAxis) hist-&gt;GetZaxis()-&gt;SetTitle(zAxis);</div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;  <span class="keywordflow">if</span>(update &amp;&amp; gPad) gPad-&gt;Update();</div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;}</div><div class="ttc" id="classReconstructedParticle_html"><div class="ttname"><a href="classReconstructedParticle.html">ReconstructedParticle</a></div><div class="ttdoc">Extended data container of a reconstructed particle. </div><div class="ttdef"><b>Definition:</b> <a href="ReconstructedParticle_8h_source.html#l00023">ReconstructedParticle.h:23</a></div></div>
<div class="ttc" id="namespaceBOSS__Afterburner_1_1TerminalIO_html_a3cf768f515ced7b0f68b80b0d5ce0371"><div class="ttname"><a href="namespaceBOSS__Afterburner_1_1TerminalIO.html#a3cf768f515ced7b0f68b80b0d5ce0371">BOSS_Afterburner::TerminalIO::IsEmptyPtr</a></div><div class="ttdeci">bool IsEmptyPtr(void *ptr)</div><div class="ttdoc">Auxiliary function that you can used in other functions to check if a pointer that you fed it is a nu...</div><div class="ttdef"><b>Definition:</b> <a href="TerminalIO_8cxx_source.html#l00040">TerminalIO.cxx:40</a></div></div>
<div class="ttc" id="namespaceBOSS__Afterburner_1_1Hist_html_a430848ed571d18b1546ad7bb37fa6e5c"><div class="ttname"><a href="namespaceBOSS__Afterburner_1_1Hist.html#a430848ed571d18b1546ad7bb37fa6e5c">BOSS_Afterburner::Hist::CreateInvariantMassHistogram</a></div><div class="ttdeci">TH1D CreateInvariantMassHistogram(const ReconstructedParticle &amp;particle, const int nBins=200)</div><div class="ttdef"><b>Definition:</b> <a href="Hist_8cxx_source.html#l00007">Hist.cxx:7</a></div></div>
<div class="ttc" id="classParticle_html_ad30a585b6978c1be9fe055b991aae27d"><div class="ttname"><a href="classParticle.html#ad30a585b6978c1be9fe055b991aae27d">Particle::Name</a></div><div class="ttdeci">const char * Name() const</div><div class="ttdef"><b>Definition:</b> <a href="Particle_8cxx_source.html#l00074">Particle.cxx:74</a></div></div>
<div class="ttc" id="classReconstructedParticle_html_ae4b4ace00839a865ae3a610e89589a67"><div class="ttname"><a href="classReconstructedParticle.html#ae4b4ace00839a865ae3a610e89589a67">ReconstructedParticle::PlotUntil</a></div><div class="ttdeci">const Double_t PlotUntil() const</div><div class="ttdef"><b>Definition:</b> <a href="ReconstructedParticle_8h_source.html#l00080">ReconstructedParticle.h:80</a></div></div>
<div class="ttc" id="Hist_8h_html"><div class="ttname"><a href="Hist_8h.html">Hist.h</a></div></div>
<div class="ttc" id="TerminalIO_8h_html"><div class="ttname"><a href="TerminalIO_8h.html">TerminalIO.h</a></div></div>
<div class="ttc" id="namespaceBOSS__Afterburner_1_1Hist_html_af68da061498f2040de2c89aac7e53441"><div class="ttname"><a href="namespaceBOSS__Afterburner_1_1Hist.html#af68da061498f2040de2c89aac7e53441">BOSS_Afterburner::Hist::SetAxisTitles</a></div><div class="ttdeci">void SetAxisTitles(TH1 *hist, const char *xAxis, const char *yAxis=nullptr, const char *zAxis=nullptr, bool update=true)</div><div class="ttdef"><b>Definition:</b> <a href="Hist_8cxx_source.html#l00016">Hist.cxx:16</a></div></div>
<div class="ttc" id="classReconstructedParticle_html_aa755cc4e124a7355b30a7b8fc7eddafb"><div class="ttname"><a href="classReconstructedParticle.html#aa755cc4e124a7355b30a7b8fc7eddafb">ReconstructedParticle::PlotFrom</a></div><div class="ttdeci">const Double_t PlotFrom() const</div><div class="ttdef"><b>Definition:</b> <a href="ReconstructedParticle_8h_source.html#l00079">ReconstructedParticle.h:79</a></div></div>
<div class="ttc" id="namespaceBOSS__Afterburner_1_1TerminalIO_html"><div class="ttname"><a href="namespaceBOSS__Afterburner_1_1TerminalIO.html">BOSS_Afterburner::TerminalIO</a></div><div class="ttdef"><b>Definition:</b> <a href="TerminalIO_8h_source.html#l00015">TerminalIO.h:15</a></div></div>
<div class="ttc" id="classReconstructedParticle_html_adc13b67310f6b9db9c819a9024f58f20"><div class="ttname"><a href="classReconstructedParticle.html#adc13b67310f6b9db9c819a9024f58f20">ReconstructedParticle::DaughterLabel</a></div><div class="ttdeci">const Char_t * DaughterLabel() const</div><div class="ttdef"><b>Definition:</b> <a href="ReconstructedParticle_8h_source.html#l00069">ReconstructedParticle.h:69</a></div></div>
<div class="ttc" id="classParticle_html_a277d1d1b4dfb9f52534fd47ddd204cf7"><div class="ttname"><a href="classParticle.html#a277d1d1b4dfb9f52534fd47ddd204cf7">Particle::NameLaTeX</a></div><div class="ttdeci">const char * NameLaTeX() const</div><div class="ttdef"><b>Definition:</b> <a href="Particle_8cxx_source.html#l00065">Particle.cxx:65</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_47d75cafac7cc64bbbc3a2eec18c6891.html">Functions</a></li><li class="navelem"><a class="el" href="Hist_8cxx.html">Hist.cxx</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
  </ul>
</div>
</body>
</html>
